#pragma once
#include <cocos2d.h>
#include "ObjectDataDefine.h"

USING_NS_CC;

#define GLOBAL_PLAYER_GOLD 1
#define GLOBAL_PLAYER_EXP 2
#define GLOBAL_PLAYER_PLANETYPE 3	
#define GLOBAL_PLAYER_PLANEID 4
#define GLOBAL_PLAYER_PLANEWEAPON 5
#define GLOBAL_PET_TYPE 6
#define GLOBAL_PET_WEAPON 7



class GlobalData : public CCObject
{
public:
	GlobalData(void);
	~GlobalData(void);

	CC_SYNTHESIZE_RETAIN(PlayerData*, _playerData, PlayerData);

	static GlobalData* _instance;
	static GlobalData* sharedData();
	
	void clearData();
};

